﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DesignPatterns.CompositePattern
{
    public abstract class DrawingElement
    {
        protected string _name;        

        // Constructor
        public DrawingElement(string name)
        {
            this._name = name;
        }        

        public abstract void Add(DrawingElement d);
        public abstract void Remove(DrawingElement d);
        public abstract void Display(int indent);
    }

}
